﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using PeonyShop.DAL;

namespace PeonyShop.Bussiness
{
    public class BACategory 
    {
        public DataSet GetAllCategoryByParenṭ(int ParentId, bool IsActive, bool IsDelete)
        {
            return new DACategory().GetAllCategoryByParenṭ(ParentId, IsActive, IsDelete);
        }

        public DataSet GetCategoryByName(string sName, int IsActive, int IsDelete)
        {
            return new DACategory().GetCategoryByName(sName, IsActive, IsDelete);
        }

        public bool UpdateCate(int CateId, string Name, string Description, int Order, bool IsActive, bool IsDelete)
        {
            return new DACategory().UpdateCate(CateId, Name, Description, Order, IsActive, IsDelete);
        }
        public bool InsertCate(string Name, string DescrN, int ParentId, bool IsActive, bool IsDelete, int Order)
        {
            return new DACategory().InsertCate(Name, DescrN, ParentId, IsActive, IsDelete, Order);
        }

    }
}
